/*
 * Copyright the original author or authors.
 */
package com.derbysoft.core.beans;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <code>BeanInject</code> 用于标注实例变量 表示需要一个IOC容器内的Bean注入
 *
 * @author snowway
 * @since 2008-1-7
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface BeanInject {

    /**
     * @return bean name default is field name
     */
    String name() default "";
}
